#include "hmi_app.h"
#include "key_drv.h"
#include "lcd_drv.h"

static PAGE g_currentPageIndex = MAIN_PAGE_INDEX;

bool g_isLoadOn = FALSE;

static void ProKeyEvent(void)
{
    switch (GetKeyVal())
    {
    case KEY1_SHORT_PRESS:
        g_currentPageIndex++;
        g_currentPageIndex %= 2;
        break;

    default:
        break;
    }
}

void HmiTask(void)
{
    ProKeyEvent();
    switch (g_currentPageIndex)
    {
    case MAIN_PAGE_INDEX:
        LcdTest();
        break;
    case TEST_PAGE_INDEX:
        break;

    default:
        break;
    }
}
